package com.xxjqr.rbac.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum MenuTypeEnum implements BaseEnum {
    CATALOG(1,"目录"),
    MENU(2,"菜单"),
    BUTTON(3,"按钮");

    @EnumValue
    @JsonValue
    private final Integer code;
    private final String desc;

    @Override
    public String getName() {
        return name();
    }
}
